package com.jiang.mall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class AuthWebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        // 自定义登录逻辑，如果登陆过，就不再跳转至登录页
        //registry.addViewController("/login.html").setViewName("login");

        registry.addViewController("/reg.html").setViewName("reg");
    }
}
